package org.example.Thread;

public class MyRunnable implements Runnable{

    @Override
    public void run() {
        for(int i = 1;i<=100;i++){
            String name = Thread.currentThread().getName();
            System.out.println("当前正在运行的线程为"+name+":"+i);

                try {
                    Thread.sleep(3000);
                } catch (InterruptedException e) {
                    throw new RuntimeException(e);
                }

        }
    }
}
